package com.ruoyi.teaching.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.teaching.domain.Attendance;

import java.util.List;

/**
 * 考勤Mapper接口
 *
 * @author wwh
 * @date 2024-02-19
 */
public interface AttendanceMapper extends BaseMapper<Attendance>
{
    /**
     * 查询考勤
     *
     * @param id 考勤主键
     * @return 考勤
     */
    public Attendance selectAttendanceById(Long id);

    /**
     * 查询考勤列表
     *
     * @param attendance 考勤
     * @return 考勤集合
     */
    public List<Attendance> selectAttendanceList(Attendance attendance);

    /**
     * 新增考勤
     *
     * @param attendance 考勤
     * @return 结果
     */
    public int insertAttendance(Attendance attendance);

    /**
     * 修改考勤
     *
     * @param attendance 考勤
     * @return 结果
     */
    public int updateAttendance(Attendance attendance);

    /**
     * 删除考勤
     *
     * @param id 考勤主键
     * @return 结果
     */
    public int deleteAttendanceById(Long id);

    /**
     * 批量删除考勤
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAttendanceByIds(Long[] ids);
}
